﻿<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="ucBusqueda.ascx.vb"
    Inherits="SIAVU.ucBusqueda" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v10.1, Version=10.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.1, Version=10.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxSplitter" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
    <dx:ASPxRoundPanel ID="pnlRoundBusqueda" runat="server" HeaderText="Buscar Tripulante"
        Width="80%" CssFilePath="~/App_Themes/Youthful/{0}/styles.css" CssPostfix="Youthful" HorizontalAlign="Center"
        SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css">
        <ContentPaddings Padding="6px" PaddingBottom="6px" PaddingTop="4px" />
        <HeaderStyle Font-Bold="True" Font-Names="Calibri" Font-Size="15px">
            <Paddings PaddingBottom="13px" PaddingTop="0px" />
        </HeaderStyle>
        <PanelCollection>
            <dx:PanelContent ID="PanelContent2" runat="server" Width="100%">
                <asp:Panel ID="pnlBusqueda" runat="server" Width="100%">
                    <table style="width: 100%;" cellpadding="5" cellspacing="0">
                        <tr>
                            <td width="15%">
                                <b>Legajo</b>
                            </td>
                            <td width="85%">
                                <dx:ASPxTextBox ID="txtLegajo" runat="server" Size="20">
                                    <MaskSettings Mask="&lt;0..1000000&gt;" />
                                </dx:ASPxTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td width="15%">
                                <b>Nombre</b>
                            </td>
                            <td width="85%">
                                <dx:ASPxTextBox ID="txtApellido" runat="server">
                                </dx:ASPxTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td width="15%">
                                <b>Tipo de Avión</b>
                            </td>
                            <td width="85%">
                                <dx:ASPxComboBox ID="cmbTipoAvion" runat="server" DataSourceID="odsAviones" TextField="Descripcion"
                                    ValueField="AvionID" ValueType="System.String">
                                </dx:ASPxComboBox>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <b>
                                    <dx:ASPxCheckBox ID="chkMostrarInconsistentes" runat="server" Text="Mostrar sólo inconsitentes">
                                    </dx:ASPxCheckBox>
                                </b>
                                <br />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" align="center">
                                <dx:ASPxButton ID="btnBuscar" runat="server" Text="Buscar" CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css"
                                    CssPostfix="Office2003Blue" Font-Bold="True" Font-Names="Calibri" Font-Size="15px"
                                    SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css">
                                </dx:ASPxButton>
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </dx:PanelContent>
        </PanelCollection>
    </dx:ASPxRoundPanel>
    <dx:ASPxRoundPanel ID="pnlRoundResultados" runat="server" HeaderText="Resultados de la búsqueda"
        Width="80%" Font-Bold="True" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
        CssPostfix="Youthful" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css" HorizontalAlign="Center">
        <ContentPaddings Padding="6px" PaddingBottom="6px" PaddingTop="4px" />
        <HeaderStyle>
            <Paddings PaddingBottom="13px" PaddingTop="0px" />
        </HeaderStyle>
        <PanelCollection>
            <dx:PanelContent ID="PanelContent3" runat="server">
                <asp:Panel ID="pnlResultados" runat="server">
                    <table style="width: 100%;">
                        <tr>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td align="center">
                                <dx:ASPxGridView ID="gvResultados" runat="server" AutoGenerateColumns="False" KeyFieldName="UsuarioID"
                                    ClientInstanceName="gvResultados" SettingsPager-Visible="False">
                                    <Columns>
                                        <dx:GridViewDataTextColumn VisibleIndex="0">
                                            <DataItemTemplate>
                                                <dx:ASPxButton ID="btnVerDetalle" CommandArgument='<%# Bind("UsuarioID") %>' runat="server"
                                                    OnClick="btnVerDetalle_Click" Text="Ver Detalle">
                                                </dx:ASPxButton>
                                            </DataItemTemplate>
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Legajo" FieldName="Legajo" Name="Legajo" VisibleIndex="1">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Tripulante" FieldName="NombreCompleto" Name="NombreCompleto"
                                            VisibleIndex="2">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="UsuarioID" FieldName="UsuarioID" Name="UsuarioID"
                                            VisibleIndex="0" Visible="False">
                                        </dx:GridViewDataTextColumn>
                                    </Columns>
                                    <SettingsBehavior AllowFocusedRow="True" />

<SettingsPager Visible="False" Mode="ShowAllRecords"></SettingsPager>
                                </dx:ASPxGridView>
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </dx:PanelContent>
        </PanelCollection>
    </dx:ASPxRoundPanel>
<asp:ObjectDataSource ID="odsAviones" runat="server" SelectMethod="GetAviones" TypeName="SIAVU.Dominio.EntityManager">
</asp:ObjectDataSource>
